package com.pdemo.front.resource;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import com.wordnik.swagger.jaxrs.config.BeanConfig;

public class SampleApplication extends Application {
	
	
	 public SampleApplication() {
	        BeanConfig beanConfig = new BeanConfig();
	        beanConfig.setVersion("1.0.0");
	        beanConfig.setBasePath("http://localhost:8002/api");
	        beanConfig.setResourcePackage("io.swagger.resources");
	        beanConfig.setScan(true);
	    }
	 
    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new HashSet();

        //resources.add(FirstResource.class);
        //resources.add(SecondResource.class);
        //...

        resources.add(com.wordnik.swagger.jersey.listing.ApiListingResourceJSON.class);
        resources.add(com.wordnik.swagger.jersey.listing.JerseyApiDeclarationProvider.class);
        resources.add(com.wordnik.swagger.jersey.listing.JerseyResourceListingProvider.class);

        return resources;
    }
}
